package com.copa.module.system.service.impl;

import com.copa.domain.ResponseDto;
import com.copa.module.system.domain.dto.ConfigListDto;
import com.copa.module.system.domain.entity.ConfigEntity;
import com.copa.module.system.domain.vo.ConfigListVo;
import com.copa.module.system.mapper.ConfigDao;
import com.copa.module.system.service.ConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author copa
 * @createDate 2021-02-24 21:16
 * @function
 */
@Service
public class ConfigServiceImpl implements ConfigService {

    @Autowired
    private ConfigDao configDao;

    @Override
    public ResponseDto<List<ConfigListDto>> list(ConfigListVo configListVo) {
        List<ConfigListDto> configEntities = configDao.findByKeys(configListVo);
        return ResponseDto.success(configEntities);
    }
}
